import base from './base'

export default class News extends base {
    /**
   * 创建会议
   */
    static async createMetting(options) {
        const url = `${this.baseUrl}/adm/meeting/create`
        return this.post(url, options)
    }
    /**
    * 搜索用户
    */
    static async searchUser(options) {
        const url = `${this.baseUrl}/adm/meeting/searchUser`
        return this.post(url, options)
    }
    /**
     * 获取会议列表
     */
    static getMeetingList(options) {
        const url = `${this.baseUrl}/adm/meeting/getMeetingListByPage`
        return this.get(url, options)
    }

    /**
     * 获取会议详情
     */
    static getMeetingDetails(options) {
        const url = `${this.baseUrl}/adm/meeting/detail`
        return this.get(url, options)
    }

    /**
   * 切换会议启用状态
   */
    static changeMettingStatus(options) {
        const url = `${this.baseUrl}/adm/meeting/changeStatus`
        return this.post(url, options)
    }

    /**
       * 修改会议
       */
    static changeMetting(options) {
        const url = `${this.baseUrl}/adm/meeting/modify`
        return this.post(url, options)
    }


    /**
       * 设置会议状态为已完结
       */
    static setMettingFinish(options) {
        const url = `${this.baseUrl}/adm/meeting/setFinish`
        return this.post(url, options)
    }


    /**
       * 获取会议附件列表
       */
    static getAttachList(options) {
        const url = `${this.baseUrl}/adm/meeting/getAttachListByPage`
        return this.get(url, options)
    }

    /**
     * 获取直播分类列表
     */
    static getMeetingLive(options) {
        const url = `${this.baseUrl}/adm/meeting/getMeetingLiveCategory`
        return this.get(url, options)
    }

    /**
   * 获取项目列表
   */
    static getSaleProjectList(options) {
        const url = `${this.baseUrl}/adm/meeting/getSaleProjectList`
        return this.get(url, options)
    }


    /**
   * 获取直播间数据
   */
    static getStatistics(options) {
        const url = `${this.baseUrl}/adm/meeting/getStatistics`
        return this.get(url, options)
    }

    /**
      * 上传会议附件
      */
    static attachmentUpload(options) {
        const url = `${this.baseUrl}/adm/meeting/attachmentUpload`
        return this.post(url, options)
    }


    /**
      * 创建直播分类
      */
    static createBroadcast(options) {
        const url = `${this.baseUrl}/adm/meetingCategory/create`
        return this.post(url, options)
    }



    /**
        * 修改直播分类
        */
    static changeBroadcast(options) {
        const url = `${this.baseUrl}/adm/meetingCategory/modify`
        return this.post(url, options)
    }


    /**
        * 删除直播分类
        */
    static removeBroadcast(options) {
        const url = `${this.baseUrl}/adm/meetingCategory/deleteCate`
        return this.post(url, options)
    }

    /**
           * 直播分类列表信息
           */
    static getBroadcastList(options) {
        const url = `${this.baseUrl}/adm/meetingCategory/getCategoryByPage`
        return this.post(url, options)
    }


    /**
           * 分类详情
           */
    static broadcastDetails(options) {
        const url = `${this.baseUrl}/adm/meetingCategory/detail`
        return this.post(url, options)
    }


    /**
          * 直播可用分类信息列表
          */
    static getCategoryList(options) {
        const url = `${this.baseUrl}/adm/meetingCategory/getCategoryList`
        return this.get(url, options)
    }


    /**
         * 控制台返回拉流地址
         */
    static getLiveUrl(options) {
        const url = `${this.baseUrl}/adm/meeting/startLive`
        return this.get(url, options)
    }


}
